Visual Basic (Declaration) | |
---|---|
Public Overloads Sub DitherLine( _ ByVal srcBuffer() As Byte, _ ByVal srcBufferOffset As Integer, _ ByVal destBuffer() As Byte, _ ByVal destBufferOffset As Integer _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public void DitherLine( byte[] srcBuffer, int srcBufferOffset, byte[] destBuffer, int destBufferOffset ) |
Managed Extensions for C++ | |
---|---|
public: void DitherLine( byte[]* srcBuffer, int srcBufferOffset, byte[]* destBuffer, int destBufferOffset ) |
C++/CLI | |
---|---|
public: void DitherLine( array<byte>^ srcBuffer, int srcBufferOffset, array<byte>^ destBuffer, int destBufferOffset ) |
Parameters
- srcBuffer
- The input buffer.
- srcBufferOffset
- Index to srcBuffer where the source data is started.
- destBuffer
- The output buffer.
- destBufferOffset
- Index to destBuffer where the destination data is started.
This method uses the dithering method specified in the DitheringMethod property. Therefore, it provides better 4- or 8-bit output than the RasterBufferConverter.Convert method.
This method uses the palette that the StartDithering method specifies. The output of the DitherLine method is made up of 1-, 4-, or 8-bit indexes to the specified palette. StopDithering cleans up the allocated variables and buffers. For a description of how the methods relate to each other, refer to the StartDithering.
This method does not support signed images.
For more information, refer to Processing an Image.
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Reference
RasterImage ClassRasterImage Members
Overload List
Processing an Image
Dithering Methods
Codecs.CodecsThumbnailOptions.DitheringMethod property
ImageProcessing.ColorResolutionCommand.DitheringMethod property
RasterDitheringMethod enumeration
RasterDefaults.DitheringMethod property
RasterImage.DitheringMethod property
RasterImage.StopDithering method
RasterImage.StartDithering method
RasterBufferConverter.Convert